import requests

from config import IP


class IhrmLoginApi:
    @classmethod
    def ihrm_login_api(self,jsondata):
        # 发送请求，拿响应
        resp = requests.post(url=f"{IP}/api/sys/login",
                             json=jsondata)

        return resp

if __name__ == '__main__':
    print(IhrmLoginApi.ihrm_login_api())
